<%@ Page EnableEventValidation="false" Language="C#" MasterPageFile="app-frame.master" AutoEventWireup="true" CodeFile="function.aspx.cs" Inherits="app_frame_function" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">    
    <table width="100%">    
    <tr><td><asp:Label ID="lbl_message" runat="server"  CssClass="controlFont"></asp:Label></td></tr>
    <tr>
    <td>
    <table width="100%" cellpadding="2" cellspacing="0" border="0" runat="server" id="tblmain">
    <tr>
         <td colspan ="2"><%--<asp:Label ID="lbl_message" runat="server"  CssClass="defaultFont" Font-Size="X-Small"
            ForeColor="Black"></asp:Label>--%></td>
     </tr>
      <tr>
          <td colspan="2" class="Dynamic_PageHeaderRow">
            <span style="font-size: 10pt; font-family: Verdana">
            <asp:Label ID="lblHeader" runat="server" Text="Function Object - Add"></asp:Label></span>
          </td>
    </tr>
        <tr>
            <td colspan="2">
                <asp:GridView ID="gvData" runat="server" AllowPaging="True" Font-Names="Verdana"
                    Font-Size="X-Small" PageSize="5" OnPageIndexChanging="gvData_PageIndexChanging" Width="100%" Visible="False">
                    <PagerStyle Font-Names="Verdana" Font-Size="XX-Small" />
                    <RowStyle Font-Names="Verdana" Font-Size="X-Small" />
                    <SelectedRowStyle Font-Names="Verdana" Font-Size="X-Small" />
                    <HeaderStyle Font-Names="Verdana" Font-Size="X-Small" BackColor="DimGray" ForeColor="White" />
                    <AlternatingRowStyle BackColor="#E0E0E0" ForeColor="Black" />
                </asp:GridView>
                </td>            
        </tr>
         <tr>
            <td colspan="2">                
        </td>
        </tr>
    <tr>
    <td valign="top" style="width: 211px"> 
        <span class="controlLabelFont">            
            Function Name</span></td>
    <td style="width: 6px"><asp:TextBox ID="p_function_fn_name" runat="server" Width="250px" CssClass="controlFont"></asp:TextBox>
        <asp:HiddenField ID="p_function_af_row_id" runat="server" />
    </td>
    </tr>
    <tr>
    <td valign="top" style="width: 211px"> 
        <span class="controlLabelFont">Description</span></td>
    <td style="width: 6px"><asp:TextBox ID="p_function_fn_desc" runat="server" MaxLength="255" Rows="3" TextMode="MultiLine" Width="250px" CssClass="controlFont"></asp:TextBox></td>
    </tr>
    <tr>
        <td valign="top" style="width: 211px"> 
            <span class="controlLabelFont">Type</span></td>        
        <td style="width: 6px">
                <asp:DropDownList ID="p_function_fn_type" runat="server" Width="250px" CssClass="controlFont">
                    <asp:ListItem>Expression</asp:ListItem>
                    <asp:ListItem>Function</asp:ListItem>
                </asp:DropDownList></td>
    </tr>    
    <tr>
    <td valign="top" style="width: 211px"> 
        <span class="controlLabelFont">VBScript Function/Expression</span></td>
    <td valign="top" style="width: 6px;"><asp:TextBox ID="p_function_fn_code" runat="server" MaxLength="1000" Rows="10" TextMode="MultiLine" Width="420px" CssClass="controlFont"></asp:TextBox></td>
    </tr>    
        <tr>
            <td style="width: 211px" valign="top">
                <asp:Label ID="Label1" runat="server" Text="Owner" CssClass="controlLabelFont"></asp:Label></td>
            <td style="width: 6px" runat="server" valign="top">
                    <asp:TextBox ID="txt_p_function_owner_id" runat="server" CssClass="controlFont"></asp:TextBox>
                    <asp:HiddenField ID="p_function_owner_id" runat="server" />
                    <img id="imgOwnerSearch" runat="server" alt="Click here for Lookup Window" src="Images/search.gif" class="SearchPopup" onclick="javascript:openlookupwindow('p_function_owner_id','txt_p_function_owner_id','f496930dfe0b690f','','');" />
                </td>
        </tr>
    <tr class="displaygridbottom">
    <td style="width: 211px">
        <asp:HiddenField ID="hfRequestURL" runat="server" />
                <asp:DropDownList ID="dd_p_function_owner_id" runat="server" Visible="false" CssClass="controlFont"></asp:DropDownList></td>    
            <td><input type="submit" value="Save" id="btnSave" runat="server" onserverclick="btnSave_ServerClick" onclick ="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSave','Saving...');" /><input type="submit" value="Save" id="btnUpdate" runat="server" onserverclick="btnUpdate_ServerClick" onclick ="javascript:disableThis('ctl00_ContentPlaceHolder3_btnUpdate','Saving...');" />&nbsp;
        <input type="button" value="Reset" id="btnReset" runat="server" onserverclick="btnReset_ServerClick" />
        </td>    
    </tr> 
    </table>   </td></tr><tr>        
    <td align="left"></td>
    </tr>     
  </table>
</asp:Content>
  
